using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace GSNConf.Rules.ConfigControls
{
    public partial class AllowedSendersRuleConfigControl : UserControl
    {
        public AllowedSendersRuleConfigControl()
        {
            InitializeComponent();
        }

        private void btnRemove_Click(object sender, EventArgs e)
        {
            if (lstSenders.SelectedIndex >= 0)
                lstSenders.Items.RemoveAt(lstSenders.SelectedIndex);
        }

        private void btnAadd_Click(object sender, EventArgs e)
        {
            if (txtEmail.Text.Length > 0)
                lstSenders.Items.Add(txtEmail.Text);
        }
    }
}
